﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataModel
{
    public class Share : System.MarshalByRefObject, IShare
    {
        public static AddDealHandler AddEvent;

        /// <summary>
        /// 实现在客户端添加账单的函数
        /// </summary>
        /// <param name="dealID">账单的id</param>
        public void AddDeal(string dishname)
        {
            if (AddEvent != null)
            {
                AddEvent(dishname);
            }
        }

        /// <summary>
        /// 延长对象的寿命
        /// </summary>
        /// <returns></returns>
        public override object InitializeLifetimeService()
        {
            return null;
        }
    }
}
